package com.home.entity;

import lombok.*;

import java.util.Date;
import javax.persistence.*;
@Builder(toBuilder = true)
@AllArgsConstructor(access = AccessLevel.PACKAGE)
@NoArgsConstructor
@Getter
@Setter
@Table(name = "policy_news_info")
public class PolicyNewsInfo {
    /**
     * id
     */
    @Id
    private Long id;

    /**
     * 标题
     */
    @Column(name = "news_title")
    private String newsTitle;

    /**
     * 来源
     */
    @Column(name = "news_from")
    private String newsFrom;

    /**
     * 阅读数
     */
    @Column(name = "news_clicks")
    private Integer newsClicks;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 缩略图
     */
    @Column(name = "news_pic")
    private String newsPic;

    /**
     * 类型：2 申报通知 3公告公示 4政策文件 6.新闻资讯 
     */
    @Column(name = "news_type")
    private String newsType;

    /**
     * 抓取页面
     */
    @Column(name = "fetch_url")
    private String fetchUrl;

    /**
     * 抓取状态
     */
    @Column(name = "fetch_status")
    private Integer fetchStatus;

    /**
     * 区域
     */
    @Column(name = "area_info")
    private String areaInfo;

    /**
     * 政治原文
     */
    @Column(name = "page_url")
    private String pageUrl;

    /**
     * 站点类型
     */
    @Column(name = "site_type")
    private String siteType;

    /**
     * 级别
     */
    @Column(name = "news_level")
    private String newsLevel;

    /**
     * 站点地址
     */
    @Column(name = "site_url")
    private String siteUrl;

    @Column(name = "site_id")
    private Long siteId;

    /**
     * 摘要
     */
    @Column(name = "news_desc")
    private String newsDesc;

    /**
     * 内容
     */
    @Column(name = "news_content")
    private String newsContent;


}